package com.dao.impl;

import com.Bean.Room;
import com.dao.RoomDao;
import com.util.JdbcUtil;

import java.sql.SQLException;
import java.util.List;

public class RoomDaoimpl implements RoomDao {
    @Override
    public int insert(Room room) throws SQLException {
        return 0;
    }

    @Override
    public List<Room> queryData(Room room) throws IllegalAccessException, SQLException, InstantiationException {
        String sql ="select rtid,rname from room";
        return JdbcUtil.queryData(sql,Room.class);
    }

    @Override
    public int update(Room room) throws SQLException {
        return 0;
    }

    @Override
    public int deleteById(Object id) throws SQLException {
        return 0;
    }
}
